$OpenBSD: patch-base_utils_c,v 1.5 2015/07/15 20:10:58 sthen Exp $
--- base/utils.c.orig	Wed Jul 15 12:04:09 2015
+++ base/utils.c	Wed Jul 15 17:12:40 2015
@@ -2410,7 +2410,7 @@ void service_check_sighandler(int sig) {
 	/* write check result to file */
 	if (check_result_info.output_file_fp) {
 
-		fprintf(check_result_info.output_file_fp, "finish_time=%lu.%lu\n", check_result_info.finish_time.tv_sec, check_result_info.finish_time.tv_usec);
+		fprintf(check_result_info.output_file_fp, "finish_time=%lld.%lld\n", (long long)check_result_info.finish_time.tv_sec, (long long)check_result_info.finish_time.tv_usec);
 		fprintf(check_result_info.output_file_fp, "early_timeout=%d\n", check_result_info.early_timeout);
 		fprintf(check_result_info.output_file_fp, "exited_ok=%d\n", check_result_info.exited_ok);
 		fprintf(check_result_info.output_file_fp, "return_code=%d\n", check_result_info.return_code);
@@ -2450,7 +2450,7 @@ void host_check_sighandler(int sig) {
 	/* write check result to file */
 	if (check_result_info.output_file_fp) {
 
-		fprintf(check_result_info.output_file_fp, "finish_time=%lu.%lu\n", check_result_info.finish_time.tv_sec, check_result_info.finish_time.tv_usec);
+		fprintf(check_result_info.output_file_fp, "finish_time=%lld.%lld\n", (long long)check_result_info.finish_time.tv_sec, (long long)check_result_info.finish_time.tv_usec);
 		fprintf(check_result_info.output_file_fp, "early_timeout=%d\n", check_result_info.early_timeout);
 		fprintf(check_result_info.output_file_fp, "exited_ok=%d\n", check_result_info.exited_ok);
 		fprintf(check_result_info.output_file_fp, "return_code=%d\n", check_result_info.return_code);
